package com.heh.mybatisplus.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @项目名： spring-emq
 * @包名： com.heh.mybatisplus.model
 * @文件名: UserAccount
 * @创建者: liufudong@szyh-smart.com
 * @创建时间: 2024/10/14 14:11
 * @描述：
 */
@Schema(description = "com-example-demo-pojo-UserAccount")
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Data
@TableName("user_account")
public class UserAccount implements Serializable {
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @Schema(description = "主键ID")
    private Long id;

//    @TableField(value = "balance")
    @Schema(description = "")
    private BigDecimal balance;

//    @TableField(value = "userName")
    @Schema(description = "")
    private String userName;
}
